import { useI18n } from 'vue-i18n'

// 创建一个函数来获取映射，这样可以访问到 i18n
export function getTaskStatusMapping() {
  const { t } = useI18n()
  return {
    0: t('pendingReview'),
    1: t('pendingAcceptance'), 
    2: t('inProgress'),
    3: t('underEvaluation'),
    4: t('completed'),
    5: t('returned')
  }
}

// 保持向后兼容的静态映射
export default [
  { value: 0, labelKey: 'pendingReview' },
  { value: 1, labelKey: 'pendingAcceptance' },
  { value: 2, labelKey: 'inProgress' },
  { value: 3, labelKey: 'underEvaluation' },
  { value: 4, labelKey: 'completed' },
  { value: 5, labelKey: 'returned' }
]
